#include "T_MainScene.h"
#include <SDL_keyboard.h>

T_MainScene::T_MainScene()
{
}

T_MainScene::~T_MainScene()
{
}

bool T_MainScene::OnInit( GAF_CBundle* pParam )
{
	m_pimgBack =GAF_CImage::Create("./res/Back.png");
	AddGraphics(m_pimgBack);

#ifdef TEST_CONTROL
	m_ControlScene.Init();
#else
	m_ControlActionScene.Init();
#endif

	return true;
}

void T_MainScene::OnKeyUp(int nKeyCode)
{
#ifdef TEST_CONTROL
	if(nKeyCode == GAF_EKeyCode::GAF_KEY_C)
		m_ControlScene.Call();
#else
	else
	if(nKeyCode == GAF_KEY_C)
		m_ControlActionScene.Call();
#endif
}
